package org.dromara.run.domain.bo;

import org.dromara.run.domain.Rule;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 跑步规则表业务对象 phy_run_rule
 *
 * @author chl
 * @date 2024-09-03
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Rule.class, reverseConvertGenerate = false)
public class RuleBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long ruleId;

    /**
     * 租户编号
     */
    private String tenantId;

    /**
     * 规则名称
     */
//    @NotBlank(message = "规则名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String ruleName;

    /**
     * 学期时段开始
     */
//    @NotNull(message = "学期时段开始不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date semesterPeriodBegin;

    /**
     * 学期时段结束
     */
//    @NotNull(message = "学期时段结束不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date semesterPeriodEnd;

    /**
     * 规则时间段开始
     */
//    @NotNull(message = "规则时间段开始不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date ruleTimeBegin;

    /**
     * 规则时间段结束
     */
//    @NotNull(message = "规则时间段结束不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date ruleTimeEnd;

    /**
     * 总次数
     */
//    @NotNull(message = "总次数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long totalRequired;

    /**
     * 课外跑
     */
//    @NotBlank(message = "课外跑不能为空", groups = { AddGroup.class, EditGroup.class })
    private String extraRunId;

    /**
     * 晨跑
     */
//    @NotBlank(message = "晨跑不能为空", groups = { AddGroup.class, EditGroup.class })
    private String morningRunId;

//    @NotBlank(message = "性别不能为空", groups = { AddGroup.class, EditGroup.class })
    private String gender;

//    @NotBlank(message = "总里程范围不能为空", groups = { AddGroup.class, EditGroup.class })
    private double mileageBegin;
//    @NotBlank(message = "总里程范围不能为空", groups = { AddGroup.class, EditGroup.class })
    private double mileageEnd;

    private List<Long> ids;


}
